package com.xiu.travel.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.baomidou.mybatisplus.annotation.IEnum;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;

/**
 * @author lijie
 * @date 2023/7/20 15:26
 * @description OrderItemStatusEnum
 */
@AllArgsConstructor
public enum OrderItemStatusEnum implements IEnum<Integer>
{

    /**
     * 默认
     */
    DEFAULT(0,"默认"),
    /**
     * 退款
     */
    REFUND(1,"退款"),
    /**
     * 售后
     */
    AFTERSALES(2,"售后"),
    ;
    @EnumValue
    private final Integer code;
    @JsonValue
    private final String status;

    @Override
    public Integer getValue()
    {
        return code;
    }
    public String getStatus(){return status;}
}
